package com.yz.jdd.module.main.presenter;


import com.yz.jdd.base.activity.IBaseView;
import com.yz.jdd.module.main.adapter.CashierOrdersAdapter;
import com.yz.jdd.module.main.adapter.OrdersAdapter;

public class OrderContract {

    public interface View extends IBaseView {
        void setPresenter(OrderPresenter presenter);

        void setAdapter();

        void setCashAdapter();

        void noMore();

        void More();

        void noData();

        void Data();

        void refreshComplete(boolean isRefresh);

        void expandGroup(int i);

        void expandGroup(boolean isFirst);

        void setSelection(int position);

        void notifyDataSetChanged();

    }

    public interface Presenter {

        void doGetOrderList(boolean isRefresh,String orderType);

        //收银订单
        void doGetCashierOrderList(boolean isRefresh);

        //收银流水列表
        void getOrderLiuShuiList(boolean isFirst, int position,boolean isMore);

        void startOrderDetail(int groupPosition, int childPosition,boolean isCash,String orderType);


        OrdersAdapter getAdapter();

        CashierOrdersAdapter getCashAdapter();
    }
}
